package com.prototype.demo03;

import lombok.Data;

/**
 * 金箍棒是可复制的
 */
@Data
public class GoldRingedStaff implements Cloneable {
    private float height = 100.0F;
    private float diameter = 10.0F;

    // 变大
    public void grow(){
        this.diameter *= 2;
        this.height *= 2;
    }

    // 变小
    public void shrink(){
        this.diameter /= 2;
        this.height /=2;
    }

    public void move(){
        // 移动
    }
}
